package com.ziyun.pop.modules.production.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyun.pop.modules.order.dto.OrderCraftQuoteDto;
import com.ziyun.pop.modules.order.vo.OrderCraftServerVo;
import com.ziyun.pop.modules.production.dto.TwbOrderSuppPaymentDto;
import com.ziyun.pop.modules.production.entity.ErpOrderProductionEntity;
import com.ziyun.pop.modules.production.vo.ErpOrderProductionListVo;
import io.renren.common.utils.R;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * erp订单生产表
 *
 * @author gaosheng
 * @date 2018-10-05 15:00
 */
public interface ErpOrderProductionService extends IService<ErpOrderProductionEntity> {

    boolean updateByMap(Map<String, Object> updateMap, Integer productionId);

    List<OrderCraftQuoteDto> selectAllotedCraftsList(Integer itemId);

    List<OrderCraftServerVo> selectAllotedServerCraftsList(Integer erpItemId);

    List<ErpOrderProductionListVo> queryProductionList(Map<String,Object> params);

    R queryOrderSupplierPage(Map<String, Object> params);

    R twbOrderSuppPayment(TwbOrderSuppPaymentDto twbOrderSuppPaymentDto);

    R twbOrderSuppReceiveGoods(Integer[] productionIds);

    List<ErpOrderProductionListVo> queryTwbProductionList(Map<String,Object> params);

    List<ErpOrderProductionEntity> selectProductionListByOrderNos( List<String> orderNoList);
}

